/*
 * @Author: 张帆 zhangfan@jxtech.net
 * @Date: 2023-12-15 11:40:15
 * @LastEditors: 张帆 zhangfan@jxtech.net
 * @LastEditTime: 2024-07-11 10:45:33
 * @FilePath: /qiankun/qiankun-micro-app1/src/App.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import logo from './logo.svg'
import './App.css';
import User from './pages/User.jsx'
import Admin from './pages/Admin.jsx'
import { Routes, Route, Link } from 'react-router-dom'

function App() {
  return (
    <div className="App">
      <Link to={"/user"}>user</Link>
      <Link to={"/admin"}>admin</Link>
      <Routes>
        <Route path='/user' element={<User />} />
        <Route path='/admin' element={<Admin />} />
      </Routes>
      <a href="/micro-app1">micro-app1</a>
      <a href="/micro-app2" style={{ 'margin': '0 10px'}}>micro-app2</a>
      <a href="/micro-app3">micro-app3</a>
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.APP111
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          qiankun micro app1
        </a>
      </header>
    </div>
  );
}

export default App;
